﻿
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;



namespace DataBase.Models
{
    [Table("device_info")]
    public class DeviceInfo
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Column("device_id")]
        [StringLength(50)]
        public string DeviceID { get; set; }


        [Column("ip")]
        [StringLength(50)]
        public string IP { get; set; }


        [Column("port")] 
        public int  Port { get; set; }

       


        /// <summary>
        /// 工序分组名称
        /// </summary>
        [Column("group")]
        [StringLength(50)]
        public string Group { get; set; }

        /// <summary>
        /// 下道工序分组名称
        /// </summary>
        [Column("group")]
        [StringLength(50)]
        public string NextGroup { get; set; }


        [Column("name")]
        [StringLength(50)]
        public string Name { get; set; }


        [Column("disable")] 
        public bool Disable { get; set; }


        /// <summary>
        /// 类型，只有上层，只有下层，还是上下都有
        /// 同时还能细化，增加进和出的关系。
        /// </summary>
        [Column("type")]
        public int  Type { get; set; }


        /// <summary>
        /// 线别
        /// </summary>
        [Column("lines")]
        [StringLength(50)]
        public string  Lines { get; set; }
    }
}
